/*******************************************************************************
 * 
 * Copyright:
 * 
 * License:
 * 
 * Authors: SALMON Charles
 * 
 ******************************************************************************/

/*******************************************************************************
 * 
 ******************************************************************************/

/**
 * The GUI definition of the bip author view
 */
qx.Class.define("bip.authorview.AuthorView", {
	extend : qx.ui.container.Composite,
	
	type: "singleton",
	
	/*
	 * ****************************************************************************
	 * CONSTRUCTOR
	 * ****************************************************************************
	 */

	construct : function() {
		this.base(arguments);

		// Configure layout
		var layout = new qx.ui.layout.VBox;
		layout.setSeparator("separator-vertical");
		this.setLayout(layout);

	  // Commands & Menu Bar
		this.__makeCommands();
//		this.__menuBar = this.__makeToolBar();
//		this.add(this.__menuBar);
		

	
	},

	/*
	 * ****************************************************************************
	 * PROPERTIES
	 * ****************************************************************************
	 */

	properties : {

	},

	/*
	 * ****************************************************************************
	 * MEMBERS
	 * ****************************************************************************
	 */

	members : {
		
		// ------------------------------------------------------------------------
		// CONSTRUCTOR HELPERS
		// ------------------------------------------------------------------------
		
		__makeCommands : function() {
			/*this._cmdObjectSummary = new qx.ui.core.Command("Ctrl+O");
			this._cmdObjectSummary.addListener("execute",
					this.__getObjectSummary, this);

			this._cmdRunSample = new qx.ui.core.Command("F5");
			this._cmdRunSample.addListener("execute", this.runSample, this);

			this._cmdPrevSample = new qx.ui.core.Command("Ctrl+Left");
			this._cmdPrevSample.addListener("execute", this.playPrev, this);

			this._cmdNextSample = new qx.ui.core.Command("Ctrl+Right");
			this._cmdNextSample.addListener("execute", this.playNext, this);

			this._cmdSampleInOwnWindow = new qx.ui.core.Command("Ctrl+N");
			this._cmdSampleInOwnWindow.addListener("execute",
					this.__openWindow, this);

			this._cmdDisposeSample = new qx.ui.core.Command("Ctrl+D");
			this._cmdDisposeSample.addListener("execute", this.__disposeSample,
					this);

			this._cmdNamespacePollution = new qx.ui.core.Command("Ctrl+P");
			this._cmdNamespacePollution.addListener("execute",
					this.__showPollution, this);*/
		},
		
		__makeToolBar : function() {
			var bar = new qx.ui.toolbar.ToolBar();
			
	
			return bar;
			
		}

	},

	/*
	 * ****************************************************************************
	 * DESTRUCTOR
	 * ****************************************************************************
	 */

	destruct : function() {
		this._disposeObjects();
	}
});
